using ConsoleApp1.utils;

namespace WinFormsApp1;
using System;
using System.Diagnostics;
using System.Reflection;
using WinFormsApp1.bo;
using WinFormsApp1.utils;
static class Program
{
    /// <summary>
    ///  The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main()
    {
        LogUtil.addLog("*** 程序开始 ***");
        // MessageBox.Show(LogUtil.getLog());
        
        string curLoc = System.Environment.CurrentDirectory;
        LogUtil.addLog("当前exe路径: " + curLoc);
        // MessageBox.Show(LogUtil.getLog());
        
        try
        {
            DoWork.start();
        }
        catch (Exception e)
        {
            LogUtil.addLog(e.ToString());
        }
        LogUtil.addLog("*** 程序结束 ***");

        MessageBox.Show(LogUtil.getLog());
    }
}